# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# This PKGBUILD was autocreated.  See https://xtermin.us/archperl/ for details
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-crypt-simple
pkgver=0.06
pkgrel=13
pkgdesc="Perl/CPAN Module Crypt::Simple"
arch=("any")
url="https://search.cpan.org/dist/Crypt-Simple"
license=("GPL" "PerlArtistic")
source=("https://www.cpan.org/authors/id/K/KA/KASEI/Crypt-Simple-0.06.tar.gz")
sha256sums=('3db6e7754eaa425ab2d958d40b62d2026b0b186cd576ee352b4c172fb52d8e17')

build() {
  cd "$srcdir"/Crypt-Simple-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Crypt-Simple-$pkgver
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
